<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UFT-8">
    <meta http-equiv="X-UA-Compatible"content="IE=edge">
    <meat name="viewport"content="width=device-width,initial-scale=1.0">
    <title>猜数游戏</title>
    <script>
         var targetNumber=math.round(Math.random()*100);
            //console.log(targetNumber);

            function checkNumber(){
                var guessNumber=document.getElementById('guessNumber').Value;
                console.log(guessNumber);
                if(guessNumber<targetNumbe){
                    //输出猜的数字小了
                    document.getElementById('nottce').innerText="猜错了，数小了";
                    }else if (guessNumber>targetNumber){
                        //输出猜的数字大了
                        document.getElementById('notice').innerText="猜错了"；  
                    }else{
                        //恭喜你猜对了
                    }

            }
            </script>
    </head
    <body>
        <p>系统现在随机生成一个1-100的数字，请输入你觉得可能生成的数字</p>
        <input type="text id=guessNumber"aotocmplete="false"placeholder="请输入一个1-100的整数">
        <input type="button"volue="提交" onclick="=checkNumber()">
        <p id="notice"></p>
    </body>
</html>